package io.renren.modules.jxgkphone.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class EvaluationBody {
    public Map GeneratData(){
        Map<String,Object> inside1=new HashMap<>();
        Map<String,Object> inside2=new HashMap<>();
        Map<String,Object> outside=new HashMap<>();
        outside.put("态度",inside1);
        outside.put("环节",inside2);
        List<Map<String,Object>> Tlevel=new ArrayList<>();
        List<Map<String,Object>> Hlevel=new ArrayList<>();
        inside1.put("evaluation_type_detail",Tlevel);
        inside2.put("evaluation_type_detail",Hlevel);
        Map<String,Object> inTLevel=new HashMap<>();
        Map<String,Object> inHLevel=new HashMap<>();
        List<EvaluationContent> TaiduYouL=new ArrayList<>();
        List<EvaluationContent> TaiduLiangL=new ArrayList<>();
        List<EvaluationContent> TaiduChaL=new ArrayList<>();
        List<EvaluationContent> HuanjieYouL=new ArrayList<>();
        List<EvaluationContent> HuanjieLiangL=new ArrayList<>();
        List<EvaluationContent> HuanjieChaL=new ArrayList<>();
        EvaluationContent ty1=new EvaluationContent();
        EvaluationContent ty2=new EvaluationContent();
        EvaluationContent tl1=new EvaluationContent();
        EvaluationContent tl2=new EvaluationContent();
        EvaluationContent tc1=new EvaluationContent();
        EvaluationContent tc2=new EvaluationContent();
        EvaluationContent hy1=new EvaluationContent();
        EvaluationContent hy2=new EvaluationContent();
        EvaluationContent hl1=new EvaluationContent();
        EvaluationContent hl2=new EvaluationContent();
        EvaluationContent hc1=new EvaluationContent();
        EvaluationContent hc2=new EvaluationContent();
        TaiduYouL.add(ty1);
        TaiduYouL.add(ty2);
        TaiduLiangL.add(tl1);
        TaiduLiangL.add(tl2);
        TaiduChaL.add(tc1);
        TaiduChaL.add(tc2);
        HuanjieYouL.add(hy1);
        HuanjieYouL.add(hy2);
        HuanjieLiangL.add(hl1);
        HuanjieLiangL.add(hl2);
        HuanjieChaL.add(hc1);
        HuanjieChaL.add(hc2);

        ty1.setEvaluationTypeName("态度很好");
//        ty1.setEvaluation_type_id("001");
//        ty2.setEvaluation_type_name("态度严谨");
//        ty2.setEvaluation_type_id("002");
//        tl1.setEvaluation_type_name("态度一般");
//        tl1.setEvaluation_type_id("011");
//        tl2.setEvaluation_type_name("态度平淡");
//        tl2.setEvaluation_type_id("012");
//        tc1.setEvaluation_type_name("态度很差");
//        tc1.setEvaluation_type_id("021");
//        tc2.setEvaluation_type_name("态度暴躁");
//        tc2.setEvaluation_type_id("022");
//        hy1.setEvaluation_type_name("环节很好");
//        hy1.setEvaluation_type_id("101");
//        hy2.setEvaluation_type_name("环节严谨");
//        hy2.setEvaluation_type_id("102");
//        hl1.setEvaluation_type_name("环节一般");
//        hl1.setEvaluation_type_id("111");
//        hl2.setEvaluation_type_name("环节平淡");
//        hl2.setEvaluation_type_id("112");
//        hc1.setEvaluation_type_name("环节很差");
//        hc1.setEvaluation_type_id("121");
//        hc2.setEvaluation_type_name("环节暴躁");
//        hc2.setEvaluation_type_id("122");
        inTLevel.put("优",TaiduYouL);
        inTLevel.put("良",TaiduLiangL);
        inTLevel.put("差",TaiduChaL);
        inTLevel.put("优",HuanjieYouL);
        inTLevel.put("良",HuanjieLiangL);
        inTLevel.put("差",HuanjieChaL);
        Tlevel.add(inTLevel);
        Hlevel.add(inHLevel);
        return outside;
    }
    //    List<EvaluationContent> ec= teachingEvaluationMapper.findAllEvaluationContent();
//    Map<String,Object> outside=new HashMap<>();
//    Map<String,Object> inside1=new HashMap<>();
//    Map<String,Object> inside2=new HashMap<>();
//    Map<String,Object> inside3=new HashMap<>();
//    Map<String,Object> inside4=new HashMap<>();
//        outside.put("态度",inside1);
//        outside.put("环节",inside2);
//        outside.put("内容",inside3);
//        outside.put("效果",inside4);
//    List<Map<String,Object>> Tlevel=new ArrayList<>();
//    List<Map<String,Object>> Hlevel=new ArrayList<>();
//    List<Map<String,Object>> Nlevel=new ArrayList<>();
//    List<Map<String,Object>> Xlevel=new ArrayList<>();
//        inside1.put("evaluation_type_detail",Tlevel);
//        inside2.put("evaluation_type_detail",Hlevel);
//        inside3.put("evaluation_type_detail",Nlevel);
//        inside4.put("evaluation_type_detail",Xlevel);
//    Map<String,Object> inTLevel=new HashMap<>();
//    Map<String,Object> inHLevel=new HashMap<>();
//    Map<String,Object> inNLevel=new HashMap<>();
//    Map<String,Object> inXLevel=new HashMap<>();
//        Tlevel.add(inTLevel);
//        Hlevel.add(inHLevel);
//        Nlevel.add(inNLevel);
//        Xlevel.add(inXLevel);
//    List<EvaluationContent> TaiduYouL=new ArrayList<>();
//    List<EvaluationContent> TaiduLiangL=new ArrayList<>();
//    List<EvaluationContent> TaiduChaL=new ArrayList<>();
//    List<EvaluationContent> HuanjieYouL=new ArrayList<>();
//    List<EvaluationContent> HuanjieLiangL=new ArrayList<>();
//    List<EvaluationContent> HuanjieChaL=new ArrayList<>();
//    List<EvaluationContent> NeirongYouL=new ArrayList<>();
//    List<EvaluationContent> NeirongLiangL=new ArrayList<>();
//    List<EvaluationContent> NeirongChaL=new ArrayList<>();
//    List<EvaluationContent> XiaoguoYouL=new ArrayList<>();
//    List<EvaluationContent> XiaoguoLiangL=new ArrayList<>();
//    List<EvaluationContent> XiaoguoChaL=new ArrayList<>();
//        inTLevel.put("优",TaiduYouL);
//        inTLevel.put("良",TaiduLiangL);
//        inTLevel.put("差",TaiduChaL);
//        inHLevel.put("优",HuanjieYouL);
//        inHLevel.put("良",HuanjieLiangL);
//        inHLevel.put("差",HuanjieChaL);
//        inNLevel.put("优",NeirongYouL);
//        inNLevel.put("良",NeirongLiangL);
//        inNLevel.put("差",NeirongChaL);
//        inXLevel.put("优",XiaoguoYouL);
//        inXLevel.put("良",XiaoguoLiangL);
//        inXLevel.put("差",XiaoguoChaL);
//        for(EvaluationContent ecc:ec){
//        if(ecc.getEvaluation_type_id().equals("1")){
//            if(ecc.getEvaluation_level_id().equals("1"))
//                TaiduYouL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("2"))
//                TaiduLiangL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("3"))
//                TaiduChaL.add(ecc);
//        }
//        if(ecc.getEvaluation_type_id().equals("2")){
//            if(ecc.getEvaluation_level_id().equals("1"))
//                HuanjieYouL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("2"))
//                HuanjieLiangL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("3"))
//                HuanjieChaL.add(ecc);
//        }
//        if(ecc.getEvaluation_type_id().equals("3")){
//            if(ecc.getEvaluation_level_id().equals("1"))
//                NeirongYouL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("2"))
//                NeirongLiangL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("3"))
//                NeirongChaL.add(ecc);
//        }
//        if(ecc.getEvaluation_type_id().equals("4")){
//            if(ecc.getEvaluation_level_id().equals("1"))
//                XiaoguoYouL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("2"))
//                XiaoguoLiangL.add(ecc);
//            if(ecc.getEvaluation_level_id().equals("3"))
//                XiaoguoChaL.add(ecc);
//        }
//    }
//       return outside;

}
